﻿using System.Configuration;
using IGolovkine.ShoutCastRipper;
using System.Collections.Generic;

namespace IGolovkine.ShoutCastRipper.Service.Configuration
{
    public class DatePatternElementCollection : ConfigurationElementCollection<DatePatternElement>//, IEnumerable<string>
    {
        public DatePatternElementCollection()
        {
            this.AddElementName = "datePattern";
        }

    
        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((DatePatternElement)element).Regex;
        }
    }
}
